//
//  myModel.swift
//  股票框架
//
//  Created by 李小骥 on 2017/9/29.
//  Copyright © 2017年 李小骥. All rights reserved.
//

import UIKit

class MyModel: NSObject {
    var status:String = ""
    var code:String = ""
    var message:String = ""
    var qq:String = ""
    var user_rank:String = ""
    var userID:String = ""
    var imageUrl:String = ""
    var token:String = ""
    var experience:String = ""
    var birthday:String = ""
    var area:String = ""
    var user_name:String = ""
    var sex:String = ""
    var phoneNumber:String = ""
    var isLogin = false{
        willSet{
            if(newValue == true){
                if let lc=lCode{
                    area = lc.area
                    birthday = lc.birthday
                    code = lc.code
                    experience = lc.experience
                    imageUrl = lc.imageUrl
                    message = lc.message
                    qq = lc.qq
                    sex = lc.sex
                    token = lc.token
                    userID = lc.userID
                    user_rank = lc.user_rank
                    user_name = lc.user_name
                    status = lc.status
                    phoneNumber = lc.phoneNumber
                }
            }else{
                area = ""
                birthday = ""
                code = ""
                experience = ""
                imageUrl = ""
                message = ""
                qq = ""
                sex = ""
                token = ""
                userID = ""
                user_rank = ""
                user_name = ""
                status = ""
                phoneNumber = ""
                lCode = nil
            }
        }
    }
}

